<%--
  Created by IntelliJ IDEA.
  User: my
  Date: 2017/10/31
  Time: 8:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<form id="pagerForm" method="post" action="five/manager/listCompany">
    <input type="hidden" name="pageNum" value="1"/>
</form>


<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="five/manager/listCompany?pageNum=${pageNum}" method="post">
        <div class="searchBar">
            <!--<ul class="searchContent">
                <li>
                    <label>我的客户：</label>
                    <input type="text"/>
                </li>
                <li>
                <select class="combox" name="province">
                    <option value="">所有省市</option>
                    <option value="北京">北京</option>
                    <option value="上海">上海</option>
                    <option value="天津">天津</option>
                    <option value="重庆">重庆</option>
                    <option value="广东">广东</option>
                </select>
                </li>
            </ul>
            -->
            <table class="searchContent">
                <tr>
                    <td>
                        我的客户：<input type="text" name="keyword" />
                    </td>
                    <td>
                        <select class="combox" name="province">
                            <option value="">所有省市</option>
                            <option value="北京">北京</option>
                            <option value="武汉">武汉</option>
                            <option value="广州">广州</option>
                            <option value="深圳">重庆</option>
                            <option value="成都">成都</option>
                        </select>
                    </td>
                    <td>
                        建档日期：<input type="text" class="date" readonly="true" />
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                    <li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="five/manager/preAddCompany" target="navTab"><span>添加</span></a></li>
            <li><a class="delete" href="" title="确定要删除吗?"><span></span></a></li>
            <li><a class="edit" href="five/manager/preUpdate?companyId={sid_user}" target="navTab"><span>修改</span></a></li>
            <li class="line">line</li>
            <li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="138">
        <thead>
        <tr>
            <th width="80">编号</th>
            <th width="80">公司名称</th>
            <th width="80">公司所在城市</th>
            <th width="100">服务的区域</th>
            <th width="80">风格</th>
            <th width="80" >座右铭</th>
            <th width="150">简介</th>
            <th width="80">类型</th>
            <th width="80">奖项</th>
            <th width="80">Logo</th>
            <th width="80">编辑</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${fiveCompanyList}" var="fivecompany">
        <tr target="sid_user" rel="${fivecompany.companyId}">
            <td>${fivecompany.companyId}</td>
            <td>${fivecompany.companyName}</td>
            <td>${fivecompany.companyCity}</td>
            <td>${fivecompany.companyArea}</td>
            <td>${fivecompany.companyStyle}</td>
            <td>${fivecompany.companyMotto}</td>
            <td>${fivecompany.companyFile}</td>
            <td>${fivecompany.companyType}</td>
            <td>${fivecompany.companyAward}</td>
            <td><img src="files/show?name=${fivecompany.companyLogo}"></td>
            <td><a   callback="dialogAjaxDoneThis"  target="ajaxTodo" href="five/manager/deleteCompany?companyId=${fivecompany.companyId}" class="btnDel">删除</a> </td>
        </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共${totalCount}条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="20" pageNumShown="5" currentPage="${pageNum}"></div>
    </div>
</div>

